﻿using System;
namespace Xtee.Riik.Ee.Xsd.Xtee {
    
    
    public class Gif : global::Xtee.Core.Schema.XsdBase64Binary {
        
        public Gif(byte[] value) : 
                base(value) {
            this.Validate();
        }
        
        public Gif(string value) : 
                base(value) {
            this.Validate();
        }
        
        public Gif() : 
                base(new System.Byte[0]) {
        }
        
        public static bool TryParse(string value, out global::Xtee.Riik.Ee.Xsd.Xtee.Gif result) {
            try {
                result = new global::Xtee.Riik.Ee.Xsd.Xtee.Gif(value);
                return true;
            }
            catch (System.Exception ) {
                result = null;
                return false;
            }
        }
        
        public static implicit operator Byte[] (Gif value) {
            return value.Value;
        }
        
        public static implicit operator Gif (byte[] value) {
            return new Gif(value);
        }
    }
}
